#ifndef __MOTOR_H_
#define __MOTOR_H_

void motor_func(void);



#define MOTOR01_A P07
#define MOTOR01_B P06
#define MOTOR01_C P05
#define MOTOR01_D P04

#define STEP01A()   do { MOTOR01_A = 1;   \
			           MOTOR01_B = 0;   \
			           MOTOR01_C = 0;   \
			           MOTOR01_D = 0;  }while(0)
					
#define STEP01AB()  do { MOTOR01_A = 1;   \
			           MOTOR01_B = 1;   \
			           MOTOR01_C = 0;   \
			           MOTOR01_D = 0;  }while(0)
					
#define STEP01B()   do { MOTOR01_A = 0;   \
			           MOTOR01_B = 1;   \
			           MOTOR01_C = 0;   \
			           MOTOR01_D = 0;  }while(0)
					
#define STEP01BC()  do { MOTOR01_A = 0;   \
			           MOTOR01_B = 1;   \
			           MOTOR01_C = 1;   \
			           MOTOR01_D = 0;  }while(0)
					
#define STEP01C()   do { MOTOR01_A = 0;   \
			           MOTOR01_B = 0;   \
			           MOTOR01_C = 1;   \
			           MOTOR01_D = 0;  }while(0)
					
#define STEP01CD()  do { MOTOR01_A = 0;   \
			           MOTOR01_B = 0;   \
			           MOTOR01_C = 1;   \
			           MOTOR01_D = 1;  }while(0)
					
#define STEP01D()   do { MOTOR01_A = 0;   \
			           MOTOR01_B = 0;   \
			           MOTOR01_C = 0;   \
			           MOTOR01_D = 1;  }while(0)
					
#define STEP01DA()  do { MOTOR01_A = 1;   \
			           MOTOR01_B = 0;   \
			           MOTOR01_C = 0;   \
			           MOTOR01_D = 1;  }while(0)

								 
#endif